/**
 * 
 */
package org.rvk.vms.dal.model;

import java.io.Serializable;

/**
 * Event type enumeration.
 * 
 * @author Ashish Kumar Sinha <aksinha.mail@gmail.com>
 *
 */
public enum EventType implements Serializable {
	
	LIVEEVENT("Live Event"),
	MOCK("Mock Event"),
	VIDEO("Video Event");
	
	private String displayName;
	
	private EventType(String display){
		this.displayName = display;
	}

	/**
	 * @return the displayName
	 */
	public String getDisplayName() {
		return displayName;
	}
	
	public static EventType get(String name){
		if(name == null){
			return null;
		}
		
		switch (name) {
		case "LIVEEVENT":
			return LIVEEVENT;
		case "MOCK":
			return MOCK;
		case "VIDEO":
			return VIDEO;
		default:
			return null;
		}
	}
	
}
